package com.zhangtao.demo.common.dto;

import java.util.StringJoiner;

public class RedisKeyScanParam {
    private int cursor;
    private String keyPattern;

    public int getCursor() {
        return cursor;
    }

    public void setCursor(int cursor) {
        this.cursor = cursor;
    }

    public String getKeyPattern() {
        return keyPattern;
    }

    public void setKeyPattern(String keyPattern) {
        this.keyPattern = keyPattern;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", "{", "}")
                .add("cursor:" + cursor)
                .add("keyPattern:'" + keyPattern + "'")
                .toString();
    }
}
